<template>
  <div id="DismantlingList"> 


           <el-table :data="datalist" style="width: 100%" :height="dtheight" :header-cell-style="{background:'#4F81BC',color:'white'}"
           :row-class-name="tableRowClassName"  :border="true">
            
                <el-table-column label="时间"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span >{{ scope.row.time }}</span>
                    </template>
                </el-table-column>
                 <el-table-column label="帐号"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span >{{ scope.row.telphone }}</span>
                    </template>
                </el-table-column>
                <el-table-column :label="variable_name4 + '编号'"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span >{{ scope.row.old_pid }}</span>
                    </template>
                </el-table-column>
                 <el-table-column :label="variable_name4 + '价值'"  align='center' >                   
                    <template slot-scope="scope">                   
                       <span >{{ scope.row.final_price}}</span>
                    </template>
                </el-table-column>
                <el-table-column label="拆解方式"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span v-if="scope.row.reward_type == 1 ">{{ variable_name1 }}</span>
                        <span v-if="scope.row.reward_type == 2 ">{{ variable_name2 }}</span>
                    </template>
                </el-table-column>
                 <el-table-column label="拆解编号"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span >{{ scope.row.new_pids}}</span>
                    </template>
                </el-table-column>
                <el-table-column label="拆解价值"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span >{{ scope.row.price }}</span>
                    </template>
                </el-table-column>
                  <el-table-column :label="variable_name1 + '/' + variable_name2"  align='center'>                   
                    <template slot-scope="scope">                   
                        <span >{{ scope.row.reward_value }}</span>
                    </template>
                </el-table-column>
        
        </el-table> 

   </div>
</template>

<script>

export default {
   name: 'DismantlingList',
   props:{
      datalist:{  
        //type:Array,
       default:()=>[]
     },
  },
  data () {
    return {
        dtheight:'500',  //窗口高度
       
    }
  },
   components:{

  },
  created(){
     this.dtheight = window.innerHeight -353
   
  },
  mounted (){
    
  },
  methods: { 
 
  
  }
}
</script>


<style scoped>

</style>